/**
 * <p>Copyright (c) 2011 深圳市鹏途信息技术有限公司 </p>
 * <p>				   All right reserved. 		     </p>
 * 
 * <p>项目名称 ： 	东莞交通工程质量监督综合业务系统        </p>
 * <p>创建者   :	liuyang 
 * 
 * <p>描   述  :   MiddleIssue.java for com.pengtu.entity.business.middledetect    </p>
 * 
 * <p>最后修改 : $: 2011-9-27-上午10:57:24 v 1.0.0	 liuyang   $     </p>
 * 
*/

package com.pengtu.entity.business.middledetect;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.pengtu.entity.IdEntity;
import com.pengtu.entity.app.Attachment;

/**
 * 中间交工验收存在问题
 * 
 * MiddleIssue
 * 
 * 2011-9-27 上午10:57:24
 * 
 * @version 1.0.0
 * 
 */
@Entity
@Table(name = "T_Q_CASE_MIDDLE_ISSUE")
public class MiddleIssue extends IdEntity{

	/**
	 * serialVersionUID:TODO
	 *
	 * @since 1.0.0
	 */
	
	private static final long serialVersionUID = 1L;

	private String projId; // 工程
	private MiddleReport middleReport;//检测
	private String type;//问题类型
	private String content;//概要描述
	private String dealContent;//处理措施
	private Date dealDate;//处理时间
	private String remark;//备注
	
	private String petitionFile; // 附件资料
	private Set<Attachment> attachments =  new HashSet<Attachment>(0);
	/**
	 * projId
	 *
	 * @return  the projId
	 * @since   1.0.0
	 */
	@Column(name="PID")
	public String getProjId() {
		return projId;
	}
	/**
	 * @param projId the projId to set
	 */
	public void setProjId(String projId) {
		this.projId = projId;
	}
	/**
	 * middleReport
	 *
	 * @return  the middleReport
	 * @since   1.0.0
	 */
	@ManyToOne(cascade = CascadeType.REFRESH,fetch=FetchType.LAZY)
    @JoinColumn(name = "CID" )
	public MiddleReport getMiddleReport() {
		return middleReport;
	}
	/**
	 * @param middleReport the middleReport to set
	 */
	public void setMiddleReport(MiddleReport middleReport) {
		this.middleReport = middleReport;
	}
	/**
	 * type
	 *
	 * @return  the type
	 * @since   1.0.0
	 */
	@Column(name="TYPE")
	public String getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}
	/**
	 * content
	 *
	 * @return  the content
	 * @since   1.0.0
	 */
	@Column(name="CONTENT")
	public String getContent() {
		return content;
	}
	/**
	 * @param content the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}
	/**
	 * dealContent
	 *
	 * @return  the dealContent
	 * @since   1.0.0
	 */
	@Column(name="DEALCONTENT")
	public String getDealContent() {
		return dealContent;
	}
	/**
	 * @param dealContent the dealContent to set
	 */
	public void setDealContent(String dealContent) {
		this.dealContent = dealContent;
	}
	/**
	 * dealDate
	 *
	 * @return  the dealDate
	 * @since   1.0.0
	 */
	@Column(name="DEALDATE")
	@Temporal(TemporalType.DATE)
	public Date getDealDate() {
		return dealDate;
	}
	/**
	 * @param dealDate the dealDate to set
	 */
	public void setDealDate(Date dealDate) {
		this.dealDate = dealDate;
	}
	/**
	 * remark
	 *
	 * @return  the remark
	 * @since   1.0.0
	 */
	@Column(name="REMARK")
	public String getRemark() {
		return remark;
	}
	/**
	 * @param remark the remark to set
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}
	/**
	 * petitionFile
	 *
	 * @return  the petitionFile
	 * @since   1.0.0
	 */
	@Column(name="CONTENTFILE")
	public String getPetitionFile() {
		return petitionFile;
	}
	/**
	 * @param petitionFile the petitionFile to set
	 */
	public void setPetitionFile(String petitionFile) {
		this.petitionFile = petitionFile;
	}
	/**
	 * attachments
	 *
	 * @return  the attachments
	 * @since   1.0.0
	 */
	@OneToMany(cascade = CascadeType.PERSIST, fetch = FetchType.LAZY)
	@JoinColumn(name = "TABLEID")
	public Set<Attachment> getAttachments() {
		return attachments;
	}
	/**
	 * @param attachments the attachments to set
	 */
	public void setAttachments(Set<Attachment> attachments) {
		this.attachments = attachments;
	}
	
}
